package com.yht.consumer;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author 鱼仔
 * 消费者服务
 * 集成Hystrix 服务降级服务
 */
@EnableFeignClients
//在启动类上添加@EnableCircuitBreaker来开启Hystrix的断路器功能
@EnableCircuitBreaker
@SpringBootApplication
public class SpringcloudConsumerEurekaApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringcloudConsumerEurekaApplication.class, args);
    }

}
